package pers.mobian.springfirst.sameBeanName;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import pers.mobian.springfirst.firstTest.User;

/**
 * @Date 2021/6/27 12:21
 * @Created mobian
 * @Description
 */
@Configuration
public class AppConfig {

	@Bean(name = "user2")
	public User getUser(){

		User user = new User();
		user.setAge(55);
		user.setName("mobianPan");
		return  user;
	}
}
